// ignore_for_file: dangling_library_doc_comments, slash_for_doc_comments
import 'package:json_annotation/json_annotation.dart';

import '../../../common_code/models/base_model.dart';

part 'home_banner_model.g.dart';

/*** 
 * @Author: Zhong
 * @Date: 2025-07-18 14:49:22
 * @LastEditors: Zhong zhongxiaodong@eenet.com
 * @LastEditTime: 2025-07-18 15:09:44
 * @FilePath: /wan_android_flutter/lib/module_code/home/models/home_banner_model.dart
 * @Description: 
 */

@JsonSerializable(explicitToJson: true)
class HomeBannerModel extends BaseModel {
  List<HomeBannerDataModel>? data;

  HomeBannerModel({
    this.data, required super.errorCode, required super.errorMsg,
  });

  factory HomeBannerModel.fromJson(Map<String, dynamic> json) =>
      _$HomeBannerModelFromJson(json);

  Map<String, dynamic> toJson() => _$HomeBannerModelToJson(this);
}

@JsonSerializable()
class HomeBannerDataModel {
  String? desc;
  int? id;
  String? imagePath;
  int? isVisible;
  int? order;
  String? title;
  int? type;
  String? url;

  HomeBannerDataModel({
    this.desc,
    this.id,
    this.imagePath,
    this.isVisible,
    this.order,
    this.title,
    this.type,
    this.url,
  });

  factory HomeBannerDataModel.fromJson(Map<String, dynamic> json) =>
      _$HomeBannerDataModelFromJson(json);

  Map<String, dynamic> toJson() => _$HomeBannerDataModelToJson(this);
}
